<template>
  <div class="mine">
    <div class="login">
      <van-button type="danger"
                  @click="goLogin">退出登录</van-button>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'
import { userStore } from '/@/store/modules/user'

export default defineComponent({
  setup() {
    const goLogin = () => {
      userStore.store.dispatch('clearStore')
    }
    return {
      goLogin,
    }
  },
})
</script>

<style lang="less" scoped>
.mine {
  padding: 50px 0;
}
</style>